package com.whfc.fvs.enums;

/**
 * @Description: 视频监控设备云台状态
 * @author: qzexing
 * @version: 1.0
 * @date: 2020/5/26 9:03
 */
public enum FvsDevicePtzStatus {

    NOT_SUPPORT_PTZ(0, "不支持"),

    SUPPORT_PTZ(1, "支持");

    private Integer value;

    private String desc;

    public Integer getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    FvsDevicePtzStatus(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static FvsDevicePtzStatus parseValue(Integer value) {
        switch (value) {
            case 0:
                return NOT_SUPPORT_PTZ;
            case 1:
                return SUPPORT_PTZ;
            default:
                return null;
        }
    }


}
